package com.aop.demo.service.impl;

import com.aop.demo.bean.User;
import com.aop.demo.service.UserValidator;
import org.springframework.stereotype.Service;

/**
 * @author H
 * @date 2023/1/1
 */
@Service
public class UserValidatorImpl implements UserValidator {

    @Override
    public boolean validate(User user) {
        System.out.println("引入新的接口：" + UserValidator.class.getSimpleName());
        return user != null;
    }
}
